package com.woniu.commentorder.mapper;

import com.hc.entity.PayRecord;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

@Mapper
public interface PayRecordMapper {
    @Insert("insert into hc_payrecord (datetime,fee,way,order_id,user_id) values (#{dateTime},#{fee},#{way},#{order.id},#{user.id})")
    @Options(useGeneratedKeys = true, keyColumn = "id", keyProperty = "id")
    public int insert(PayRecord payRecord);
}
